import http from "../utils/http/http";
//遍历查
const getMaintenancePlanData = (data) => {
    return http.get("/maintenancePlan/", data);
};
//查单个
const getSingleMaintenancePlanData = (data) => {
    return http.get("/maintenancePlan/" + data.dataSeq);
};
//修改单个
const updMaintenancePlanData = (data) => {
    return http.put("/maintenancePlan/", data);
};
//删除单个
const deleteSingleMaintenancePlanData = (data) => {
    return http.del("/maintenancePlan/" + data.dataSeq);
};
//查维修项目
const getMaintenanceDefinitionData = (data) => {
    return http.get("/maintenancePlan/definition/", data);
};
//新增维修计划
const insertMaintenancePlan = (data) => {
    return http.post("/maintenancePlan/add/", data);
};
//导入excel计划
const importMaintenancePlan = (data) => {
    return http.post("/maintenancePlan/import/", data);
};
export default {
    getMaintenancePlanData, getSingleMaintenancePlanData, updMaintenancePlanData,
    deleteSingleMaintenancePlanData, getMaintenanceDefinitionData, insertMaintenancePlan,
    importMaintenancePlan
}